﻿using System.Collections.Generic;
using Bdcs.Application.Mappers.Dto;
using Bdcs.Core.Entity;

namespace Bdcs.Application.Services.IServices
{
    public interface IUserAuthService
    {
        /// <summary>
        /// 保存用户权限
        /// </summary>
        /// <param name="userId">用户主键</param>
        /// <param name="auths">用户对应的权限</param>
        /// <returns>影响行数</returns>
        public int SaveUserAuth(string userId,string auths);


        /// <summary>
        /// 列表
        /// </summary>
        /// <param name="userId">主键</param>
        /// <returns></returns>
        public List<UserAuthDto> List(string userId);
    }
}